<?php
namespace app\api\model;


use app\model\Base;

class MerchantScoreLog extends Base
{
    public function getAmountFormatAttr($value, $data)
    {
        $str = '+';
        if($data['mode'] == 'dec'){
            $str = '-';
        }
        return $str . calc_amount($data['amount']);
    }

    public function getTypeFormatAttr($value)
    {
        return '兑换积分';
    }

    public function getIconAttr($value)
    {
        return get_local_url('/static/system/account/wallets/logs-icon1.png');
    }

}